﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CARMSBusiness
{
    public class PublicConst
    {

        public class ButtonEvent
        {
            public const int New = 1;
            public const int Edit = 2;
            public const int Remove = 4;
            public const int Print = 5;
            public const int Export = 6;
            public const int Confirm = 7;

        }

        public class G102Method
        {
            /// <summary>
            /// a.表單操作=1XXX :鼠標點擊訊息條時執行顯示單號頁面提供操作	
            /// </summary>
            public const string Action1 = "1XXX";

            /// <summary>
            /// b.表單審核模式1=2XXX :鼠標點擊訊息條時執行顯示單號頁面並提供表單操作.
            /// </summary>
            public const string Action2 = "2XXX";

            /// <summary>
            /// c.表單審核模式2=4XXX :保留未使用.	
            /// </summary>
            public const string Action3 = "4XXX";

            /// <summary>
            /// d.訊息通知=8XXX :只提供通知內容不處理其他表單功能.	
            /// </summary>
            public const string Action4 = "8XXX";

            /// <summary>
            /// e.短訊通知=X1XX :取得(通訊載體(G102-15))及通知內容(G102-4))發至手機	
            /// </summary>
            public const string Action5 = "X1XX";

            /// <summary>
            /// f. 郵箱通知=X2XX :得電子郵箱(通訊載體(G102-15))及通知內容(G102-4)發至郵箱	
            /// </summary>
            public const string Action6 = "X2XX";

            /// <summary>
            /// g. 外部通訊=X4XX :執行外部PC間TCP/IP訊息傳遞,取得IP(通訊載體(G102-10))及通知內容(G102-4)
            /// </summary>
            public const string Action7 = "X4XX";

            /// <summary>
            /// h. 內部通訊=X8XX :執行本機API間TCP/IP訊息傳遞,取得IP(通訊載體(G102-10))及通知內容(G102-4))	
            /// </summary>
            public const string Action8 = "X8XX";

            /// <summary>
            /// i.信息交换=XX1X :執行B115功能模組通訊協議.	
            /// </summary>
            public const string Action9 = "XX1X";

            /// <summary>
            /// j.時間記錄=XX2X :將回應時間及通知對象(操作人員)記錄至G400相對應的顯示單號欄位	
            /// </summary>
            public const string Action10 = "XX2X";

            /// <summary>
            /// k.看板顯示=XX4X :執行G102-2 - G102-6 之內容顯示到被通知對象管理看板		
            /// </summary>
            public const string Action11 = "XX4X";

            /// <summary>
            /// l.計算操作=XX8X :執行事件計算器(G107)內計算器代碼. 啟動事件計算器(G107)執行SQL內觸發器計算組數內計算器公式計算條件. 	
            /// </summary>
            public const string Action12 = "XX8X";

            /// <summary>
            /// n.網頁操作=XXX1 :由訊息載體群取得網頁路徑操作網頁.
            /// </summary>
            public const string Action13 = "XXX1";
        }
    }
}
